<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
		xmlns:og="http://ogp.me/ns#"
		xmlns:fb="https://www.facebook.com/2008/fbml" xml:lang="de">
<head>

{assign var="languageTextFile" value='themes/default/lang/'|cat:$languageCode}
{assign var="languageTextFile" value=$languageTextFile|cat:'/text.tpl'}
{include file=$languageTextFile}

{assign var="canonical" value=""}
{assign var="robots" value="index,follow"}

<meta http-equiv="content-language" content="{$languageCode}">

{if $is_404==true}
	<title>{$TEXT_PAGE_NOT_FOUND} - {$TEXT_SITE_NAME}</title>
	{assign var="robots" value="noindex,nofollow"}
	{assign var="canonical" value=0}
{else}

	{if $pageType == "index"}
		<title>{$TEXT_SITE_NAME}</title>
		<meta name="keywords" content="Kammerath,Network,Kammerath Network,Jan Kammerath,Ivo Kammerath,{$TEXT_SITE_NAME}" />

		{if $languageCode == "de-DE"}
			<meta name="description" content="Das Kammerath Network bietet einmalige Technik-Infos rund um Computer, Netzwerk, Open Source, Linux und vielem mehr, die sonst nirgendwo zu finden sind." />
            <link rel="alternate" hreflang="en" href="http://www.kammerath.co.uk/" />
		{/if}

		{if $languageCode == "en-GB"}
			<meta name="description" content="The Kammerath Network offer unseen information on technology like computers, networking, open source, linux and many more that you won't find elsewhere on the internet." />
            <link rel="alternate" hreflang="en" href="http://www.kammerath.net/" />
		{/if}
	{/if}
	{if $pageType == "category"}
		{foreach from=$categoryList item=categoryItem}
			{if $categoryItem.url==$pageItem}
				{assign var="canonical" value="k/"|cat:$categoryItem.url}
				<title>{$categoryItem.name} - {$TEXT_SITE_NAME}</title>
				<meta name="keywords" content="{$categoryItem.name}" />
				<meta name="description" content="{$pageCategoryItem.meta_desc|truncate:155:".."}" />
			{/if}
		{/foreach}
	{/if}
	{if $pageType == "article"}
		{assign var="canonical" value=$article.url|cat:".html"}
		<title>{$article.title} - {$TEXT_SITE_NAME}</title>
		
		<meta property="og:title" content="{$article.title}"/>
		<meta property="og:type" content="article"/>
		<meta property="og:app_id" content="138524109534751" />
		<meta property="og:url" content="http://{$primary_domain}/{$article.url|cat:".html"}"/>
		{if $article.image|strlen > 0}
			<meta property="og:image" content="http://{$primary_domain}/img/{$article.image}"/>
		{/if}
		<meta property="og:site_name" content="Kammerath Network"/>

		{if $languageCode == "de-DE"}
			<meta property="og:locale" content="de_DE" />
		{/if}

		{if $languageCode == "en-GB"}
			<meta property="og:locale" content="en_GB" />
		{/if}

		<meta name="keywords" content="{$article.title},{$article.keyword}" />
		<meta name="description" content="{$article.meta_desc|truncate:155:"..."}" />
		<meta property="og:description" content="{$article.meta_desc|truncate:155:"..."}" />
	{/if}
	{if $pageType == "search"}
		{assign var="robots" value="noindex,follow"}
		<title>{$pageItem} - {$TEXT_SITE_NAME}</title>
	{/if}
    {if $pageType == "newsletter"}
        {assign var="canonical" value="newsletter/"}
        {if $languageCode == "de-DE"}
            <title>Für den Newsletter anmelden - {$TEXT_SITE_NAME}</title>
            <meta name="keywords" content="newsletter,anmelden,abmelden,email" />
            <meta name="description" content="Der Kammerath Network Newsletter bietet Updates zu neuen Artikeln, exklusiv spannende Informationen rund um Technik, Open Source und vielen mehr." />
            <link rel="alternate" hreflang="en" href="http://www.kammerath.co.uk/newsletter/" />
        {/if}

        {if $languageCode == "en-GB"}
            <title>Subscribe to the newsletter - {$TEXT_SITE_NAME}</title>
            <meta name="keywords" content="newsletter,subscribe,unsubscribe,email" />
            <meta name="description" content="The Kammerath Network newsletter offers updates about new articles, exclusive background information about tech, open source and many more." />
            <link rel="alternate" hreflang="de" href="http://www.kammerath.net/newsletter/" />
        {/if}
    {/if}
    {if $pageType == "legal"}
        {assign var="robots" value="noindex,follow"}
        {if $languageCode == "de-DE"}
            {assign var="canonical" value="impressum/"}
            <title>Impressum, Anbieterkennzeichnung und Datenschutzerklärung - {$TEXT_SITE_NAME}</title>
            <meta name="keywords" content="impressum,anbieterkennzeichnung,datenschutz" />
            <meta name="description" content="Impressum, Anbieterkennzeichnung, Datenschutzerklärung zu Cookies und Web Analytics und rechtliche Informationen zum Kammerath Network sowie dessen Betreiber." />
            <link rel="alternate" hreflang="en" href="http://www.kammerath.co.uk/legal/" />
        {/if}

        {if $languageCode == "en-GB"}
            {assign var="canonical" value="legal/"}
            <title>Legal information and privacy policy - {$TEXT_SITE_NAME}</title>
            <meta name="keywords" content="legal information, privacy policy" />
            <meta name="description" content="Legal information and privacy policy of the Kammerath Network about cookies and web analytics being used for the services on the website." />
            <link rel="alternate" hreflang="de" href="http://www.kammerath.net/impressum/" />
        {/if}
    {/if}
    {if $pageType == "contact"}
        {assign var="robots" value="index,follow"}
        {if $languageCode == "de-DE"}
            {assign var="canonical" value="kontakt/"}
            <title>Kontakt per E-Mail - {$TEXT_SITE_NAME}</title>
            <meta name="keywords" content="e-mail,kontakt,telefon,telefonnummer,e-mail adresse" />
            <meta name="description" content="Kontakt per E-Mail und Telefon zum Kammerath Network über das Kontaktformular für Rückfragen zu Artikeln oder allgemeine Anfragen." />
            <link rel="alternate" hreflang="en" href="http://www.kammerath.co.uk/contact/" />
        {/if}

        {if $languageCode == "en-GB"}
            {assign var="canonical" value="contact/"}
            <title>Contact via E-Mail - {$TEXT_SITE_NAME}</title>
            <meta name="keywords" content="e-amil,contact,phone,phone number,e-mail address" />
            <meta name="description" content="Contact Kammerath Network via e-mail or phone through the contact form for any questions, feedback about articles or general requests." />
            <link rel="alternate" hreflang="de" href="http://www.kammerath.net/kontakt/" />
        {/if}
    {/if}
{/if}

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="robots" content="{$robots}" />

{if $languageCode == "de-DE"}
<meta name="google-site-verification" content="BPUF-GY02lLIK2jX7Bv7eHPAjVjd7dxWoAJD2rPCdw8" />
{/if}

{if $languageCode == "en-GB"}
<meta name="google-site-verification" content="58Pf3rK_KjlKtt2rrgDBaY2SkIKG13dfEs8DuBpQ-04" />
{/if}
<meta property="fb:admins" content="1664544556" />
<meta property="fb:app_id" content="138524109534751" />

{if $canonical !== 0}
	<link rel="canonical" href="http://{$primary_domain}/{$canonical}" />
{/if}

<link rel="stylesheet" type="text/css" media="all" href="http://{$cdn_host_css}/minpack{$minpack_css_tag}.css" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<meta name="verification" content="a70dedf2998e5205930658a63d49e33e" />

<link rel="alternate" type="application/rss+xml" title="RSS" href="http://{$primary_domain}/feed.rss" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
</head>
<body>
<div class="main {$pageType}page">
	<div class="top">
    	<div class="header">           
        	<a href="#"><div id="menu"></div></a>
            <a href="#"><div id="menusearch"></div></a> 

            <a href="/">
        		<img class="logo" src="/themes/default/img/kammerath-network.png" alt="Kammerath Network" width="229" height="34" />
            </a>
        </div>
    </div>
    <div class="bottom">
		<!-- main content section -->
    	<div class="content">
            {include file='themes/default/notification.tpl'}

            <!-- search bar -->
            <div id="searchbar" class="searchbar">
                <div id="searchbutton" class="searchbutton">
                    <div class="searchbuttonicon"></div>
                </div>
                <div class="searchfield">
                    <input id="searchfieldtext" type="text" value="{if isset($searchQuery)}{$searchQuery}{/if}" />
                </div>
            </div>

        	<div class="contentbody">
				{if $is_404==true}
					{assign var="errorTextFile" value='themes/default/lang/'|cat:$languageCode}
					{assign var="errorTextFile" value=$errorTextFile|cat:'/404.tpl'}
					{include file=$errorTextFile}
				{else}
					<!--
					Page Type: {$pageType}
					Page Item: {$pageItem}
					-->
					{if $pageType == "search"}
						{include file='themes/default/search.tpl'}
					{/if}
					{if $pageType == "index"}
						{include file='themes/default/index.tpl'}
					{/if}
					{if $pageType == "article"}
						{include file='themes/default/article.tpl'}
					{/if}
					{if $pageType == "category"}
						{include file='themes/default/category.tpl'}
					{/if}
                    {if $pageType == "newsletter"}
                        {include file='themes/default/newsletter.tpl'}
                    {/if}
                    {if $pageType == "legal"}
                        {include file='themes/default/legal.tpl'}
                    {/if}
                    {if $pageType == "contact"}
                        {include file='themes/default/contact.tpl'}
                    {/if}
				{/if}
    		</div>
            
            <div class="sidebar">  
                {if $loggedIn == false}
                    <div id="sidebarboxlogin" class="sidebarbox">
                        <div class="sidebarboxtitle">{$TEXT_LOGINHEAD}</div>
                        <div id="sidebarboxlogincontent" class="sidebarboxcontent">
                            <div id="userlogin" class="loginbuttonbox">
                                <div class="loginbuttonboxtitle">{$TEXT_USERLOGIN}</div>
                                <div id="google_loginbutton" class="loginbutton"></div>
                                <div id="facebook_loginbutton" class="loginbutton"></div>
                                <div id="twitter_loginbutton" class="loginbutton"></div>
                            </div> 

                            <div id="geeklogin" class="loginbuttonbox">
                                <div class="loginbuttonboxtitle">{$TEXT_GEEKLOGIN}</div>
                                <div id="github_loginbutton" class="loginbutton"></div>
                                <div id="bitbucket_loginbutton" class="loginbutton"></div>
                            </div>

                            <div style="clear:both;"></div>
                        </div>
                    </div>
                {else}
                    <div class="sidebarbox">
                        <div class="sidebarboxtitle">{$TEXT_LOGGEDINHEAD}</div>
                        <div class="sidebarboxcontent">
                            <div id="sidebaruserimage" style="background-image:url('{$user.imageurl}');"></div>
                            <div id="sidebarusername">{$user.realname}</div>
                            <div id="sidebaruserprofile">
                                <a href="{$user.profileurl}" target="_blank">
                                    {assign var=shortprofileurl value=$user.profileurl|replace:"https://www.":""}
                                    {assign var=shortprofileurl value=$shortprofileurl|replace:"http://www.":""}
                                    {assign var=shortprofileurl value=$shortprofileurl|replace:"https://":""}
                                    {assign var=shortprofileurl value=$shortprofileurl|replace:"http://":""}
                                    {$shortprofileurl}
                                </a>
                            </div>
                            <div style="clear:both;"></div>
                            <div id="sidebarboxlogoutbutton" class="sidebarboxbutton logoutbutton">
                                {$TEXT_LOGOFF}
                            </div>
                        </div>
                    </div>
                {/if}

                <div class="sidebarbox">
                    <div class="sidebarboxtitle">{$TEXT_CATEGORIES}</div>
                    <div class="sidebarboxcontent sidebarcategoryboxcontent">
                    	{assign var="menuItemId" value=0}
						{foreach from=$categoryList item=category}
							<div class="sidebarcategory" onclick="location.href='/k/{$category.url}';">
                            	<a href="/k/{$category.url}">{$category.name}</a>
                            	<div class="sidebarcategoryarticlecount">{$category.article_count}</div>
                        	</div>
							{assign var="menuItemId" value=$menuItemId+1}
						{/foreach}
                    </div>
                </div>
                
                {if $pageType != "newsletter"}
                <div id="emailsidebarbox" class="sidebarbox">
                    <div class="sidebarboxtitle">{$TEXT_SUBSCRIBENEWSLETTER}</div>
                    <div class="sidebarboxcontent">
                    	<div class="sidebarboxemailtext">{$TEXT_SUBSCRIBENEWSLETTERINTRO}</div>
                        <form id="sidebaremailsubscribeform" method="post">
                            <input name="subscriber_email_address" id="sidebarboxemailfield" class="sidebarboxfield" type="text" value="" />
                        </form>
                        <div id="sidebarboxemailbutton" class="sidebarboxbutton">
                            {$TEXT_NEWSLETTER_SUBSCRIBEBUTTON}
                        </div>
                        <div class="sidebarboxnewsletteredit">
                            <a href="/newsletter/edit">
                                {$TEXT_NEWSLETTER_EDITSUBSCRIPTION}
                            </a>
                        </div>
                        <div style="clear:both;"></div>
                    </div>
                </div>
                {/if}

                {if $pageType != "search"}
                <div id="productsidebarbox" class="sidebarbox">
                    <div class="sidebarboxtitle">{$TEXT_OFFERS}</div>
                    <div id="productsidebarboxcontent" class="sidebarboxcontent">
                        <div id="productsidebarboxloading">
                            {$TEXT_LOADINGOFFERS} ...
                        </div>                        
                    </div>
                </div>
                {/if}

                {if $pageType != "search"}
                <div id="skyscrapersidebarbox" class="sidebarbox">
                    <div class="sidebarboxtitle">{$TEXT_ADVERTISEMENT}</div>
                    <div id="sidebarskyscraper" class="sidebarboxcontent"></div>
                </div>
                {/if}
            </div>
            
            <div style="clear:both;"></div>
            
            <div class="footer">
                <div class="mainfooter">
                    {if $languageCode == "de-DE"}
                	   &copy {$year} &ndash; Kammerath Network<br />
                       Telefon: <a href="tel:004922419559860" onclick="javascript:_gaq.push(['_trackEvent', 'Contact', 'PhoneLinkClicked']);" class="linkunomask">+49 2241 955 98 60</a><br />
                       <a href="/kontakt/">Kontakt per E-Mail</a>
                    {/if}

                    {if $languageCode == "en-GB"}
                       &copy {$year} &ndash; Kammerath Network<br />
                       Phone: <a href="tel:004922419559860" onclick="javascript:_gaq.push(['_trackEvent', 'Contact', 'PhoneLinkClicked']);" class="linkunomask">+49 2241 955 98 60</a><br />
                       <a href="/contact/">Contact via e-mail</a>
                    {/if}
                </div>

                <div class="subfooter">
                    {if $languageCode == "de-DE"}
                        <a href="/impressum/">
                            Anbieterkennzeichnung und Impressum
                        </a><br />
                        <a href="http://www.facebook.com/kammerath.net" target="_blank" class="linkunomask">
                            Kammerath Network bei Facebook
                        </a><br />
                        <a href="https://plus.google.com/100462050651921907285?rel=author" class="linkunomask">
                            Jan Kammerath bei Google Plus
                        </a>
                    {/if}

                    {if $languageCode == "en-GB"}
                        <a href="/legal/">
                            Legal information and imprint
                        </a><br />
                        <a href="http://www.facebook.com/kammerath.net" target="_blank" class="linkunomask">
                            Kammerath Network on Facebook
                        </a><br />
                        <a href="https://plus.google.com/100462050651921907285?rel=author" class="linkunomask">
                            Jan Kammerath on Google Plus
                        </a>
                    {/if}
                </div>

                <div style="clear:both;"></div>
                <div class="footerend">
                    {if $languageCode == "de-DE"}
                        Das 
                        <a href="http://code.google.com/p/kammerath-network/" target="_blank" class="linkunomask">Kammerath Network Website System</a> 
                        ist unter der Mozilla Public License 1.1 veröffentlicht.
                    {/if}

                    {if $languageCode == "en-GB"}
                        The 
                        <a href="http://code.google.com/p/kammerath-network/" target="_blank" class="linkunomask">Kammerath Network Website System</a> 
                        is published under the Mozilla Public License 1.1.
                    {/if}
                </div>
            </div>
        </div>
    </div>
</div>
<div id="flexskyscraper"></div>
{include file='themes/default/javascript.tpl'}
{if $singlesignonkey != "" || $is_logged_out == "1"}
    {foreach from=$domainList item=extDomain}
        {if $extDomain != $primary_domain}
            {if $is_logged_out == "1"}
                <script type="text/javascript" src="http://{$extDomain}/sso.js?key=logout"></script>
            {/if}

            {if $singlesignonkey != ""}
                <script type="text/javascript" src="http://{$extDomain}/sso.js?key={$singlesignonkey}"></script>
            {/if}
        {/if}
    {/foreach}
{/if}
</body>
</html>
